﻿using DoNet.Core;
using DoNet.System.Models;

namespace DoNet.System.IServices
{
    /// <summary>
    /// 
    /// </summary>
    public interface IAppService : IService<App, AppOutputDto>
    {
        /// <summary>
        /// 获取app对象
        /// </summary>
        /// <param name="appid">应用ID</param>
        /// <param name="secret">应用密钥AppSecret</param>
        /// <returns></returns>
        Task<App> GetAPP(string appid, string secret);

        /// <summary>
        /// 获取app对象
        /// </summary>
        /// <param name="appid">应用ID</param>
        /// <returns></returns>
        Task<App> GetAPP(string appid);
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        //IList<AppOutputDto> SelectApp();
        /// <summary>
        /// 更新可用的应用到缓存
        /// </summary>
        void UpdateCacheAllowApp();
    }
}
